import request from '@/router/axios';

/**
 * @param params 查询 渠道列表
 * */
export const list = (params) => {
    return request({
        url: '/api/inform-api/mx-channel-account/getList',
        method: 'get',
        params: params
    })
}

/**
 * @param params 查询 渠道详情
 * */
export const detail = (params) => {
    return request({
        url: '/api/inform-api/mx-channel-account/detail',
        method: 'get',
        params: params
    })
}

/**
 * @param data 新增 渠道
 * */
export const add = (data) => {
    return request({
        url: '/api/inform-api/mx-channel-account/insert',
        method: 'post',
        data: data
    })
}

/**
 * @param data 编辑 渠道
 * */
export const update = (data) => {
    return request({
        url: '/api/inform-api/mx-channel-account/update',
        method: 'post',
        data: data
    })
}

/**
 * @param data 删除 渠道
 * */
export const del = (data) => {
    return request({
        url: '/api/inform-api/mx-channel-account/delete',
        method: 'post',
        params:data
    })
}
